Optimal. Leaf size=110 \[ -\frac {\sqrt {a+a \cosh (c+d x)}}{x}+\frac {1}{2} d \sqrt {a+a \cosh (c+d x)} \text {Chi}\left (\frac {d x}{2}\right ) \text {sech}\left (\frac {c}{2}+\frac {d x}{2}\right ) \sinh \left (\frac {c}{2}\right )+\frac {1}{2} d \cosh \left (\frac {c}{2}\right ) \sqrt {a+a \cosh (c+d x)} \text {sech}\left (\frac {c}{2}+\frac {d x}{2}\right ) \text {Shi}\left (\frac {d x}{2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 110, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {3400, 3378,
3384, 3379, 3382} \begin {gather*} \frac {1}{2} d \sinh \left (\frac {c}{2}\right ) \text {Chi}\left (\frac {d x}{2}\right ) \text {sech}\left (\frac {c}{2}+\frac {d x}{2}\right ) \sqrt {a \cosh (c+d x)+a}+\frac {1}{2} d \cosh \left (\frac {c}{2}\right ) \text {Shi}\left (\frac {d x}{2}\right ) \text {sech}\left (\frac {c}{2}+\frac {d x}{2}\right ) \sqrt {a \cosh (c+d x)+a}-\frac {\sqrt {a \cosh (c+d x)+a}}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3378
Rule 3379
Rule 3382
Rule 3384
Rule 3400
Rubi steps
\begin {align*} \int \frac {\sqrt {a+a \cosh (c+d x)}}{x^2} \, dx &=\left (\sqrt {a+a \cosh (c+d x)} \csc \left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {\pi }{4}+\frac {i d x}{2}\right )\right ) \int \frac {\sin \left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {\pi }{4}+\frac {i d x}{2}\right )}{x^2} \, dx\\ &=-\frac {\sqrt {a+a \cosh (c+d x)}}{x}+\frac {1}{2} \left (d \sqrt {a+a \cosh (c+d x)} \csc \left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {\pi }{4}+\frac {i d x}{2}\right )\right ) \int \frac {\sinh \left (\frac {c}{2}+\frac {d x}{2}\right )}{x} \, dx\\ &=-\frac {\sqrt {a+a \cosh (c+d x)}}{x}+\frac {1}{2} \left (d \cosh \left (\frac {c}{2}\right ) \sqrt {a+a \cosh (c+d x)} \csc \left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {\pi }{4}+\frac {i d x}{2}\right )\right ) \int \frac {\sinh \left (\frac {d x}{2}\right )}{x} \, dx+\frac {1}{2} \left (d \sqrt {a+a \cosh (c+d x)} \csc \left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {\pi }{4}+\frac {i d x}{2}\right ) \sinh \left (\frac {c}{2}\right )\right ) \int \frac {\cosh \left (\frac {d x}{2}\right )}{x} \, dx\\ &=-\frac {\sqrt {a+a \cosh (c+d x)}}{x}+\frac {1}{2} d \sqrt {a+a \cosh (c+d x)} \text {Chi}\left (\frac {d x}{2}\right ) \text {sech}\left (\frac {c}{2}+\frac {d x}{2}\right ) \sinh \left (\frac {c}{2}\right )+\frac {1}{2} d \cosh \left (\frac {c}{2}\right ) \sqrt {a+a \cosh (c+d x)} \text {sech}\left (\frac {c}{2}+\frac {d x}{2}\right ) \text {Shi}\left (\frac {d x}{2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 75, normalized size = 0.68 \begin {gather*} \frac {\sqrt {a (1+\cosh (c+d x))} \left (-2+d x \text {Chi}\left (\frac {d x}{2}\right ) \text {sech}\left (\frac {1}{2} (c+d x)\right ) \sinh \left (\frac {c}{2}\right )+d x \cosh \left (\frac {c}{2}\right ) \text {sech}\left (\frac {1}{2} (c+d x)\right ) \text {Shi}\left (\frac {d x}{2}\right )\right )}{2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.44, size = 0, normalized size = 0.00 \[\int \frac {\sqrt {a +a \cosh \left (d x +c \right )}}{x^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a \left (\cosh {\left (c + d x \right )} + 1\right )}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 68, normalized size = 0.62 \begin {gather*} \frac {\sqrt {2} {\left (\sqrt {a} d x {\rm Ei}\left (\frac {1}{2} \, d x\right ) e^{\left (\frac {1}{2} \, c\right )} - \sqrt {a} d x {\rm Ei}\left (-\frac {1}{2} \, d x\right ) e^{\left (-\frac {1}{2} \, c\right )} - 2 \, \sqrt {a} e^{\left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )} - 2 \, \sqrt {a} e^{\left (-\frac {1}{2} \, d x - \frac {1}{2} \, c\right )}\right )}}{4 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {a+a\,\mathrm {cosh}\left (c+d\,x\right )}}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________